package com.delaphone.fadmin.service;

import com.delaphone.fadmin.model.FAdmins;
import java.util.List;

/**
 *
 * @author dongtv
 */
public interface AdminService {

    /**
     * create brand-new user
     * @param info
     * @return true/false
     */
    public boolean createAdminUser(FAdmins info);

    /**
     * check admin login
     * @param userName
     * @param password
     * @return 
     */
    public FAdmins checkLogin(String userName, String password);

    /**
     * update admin'info
     * @param info
     * @return 
     */
    public boolean updateAdminUser(FAdmins info);

    /**
     * get admin user from username
     * @param username
     * @return 
     */
    public FAdmins getAdminUser(String username);
    /**
     * 
     * @param role: 1->admin, 2->Operator, 3-> Report
     * @param pageNumber
     * @param pageSize
     * @return 
     */
    public List<FAdmins> listAdminUser(byte role, int pageNumber, int pageSize);
    /**
     * get the total users
     * @param role
     * @return 
     */
    public long findUserRowCount(int role);
}
